import os

while(True):
    os.system("hg recover")
    path = os.path.abspath(os.curdir)
#    os.path.
    cmd = "hg --repository " + path + " pull --verbose https://hg.codeplex.com/csdevnet"
    os.system(cmd)
    cmd = ""
